package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.sql.Time;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 余票信息对象 daily_train_ticket
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
public class DailyTrainTicket extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date date;

    /** 车次编号 */
    @Excel(name = "车次编号")
    private String trainCode;

    /** 出发站 */
    @Excel(name = "出发站")
    private String start;

    /** 出发站拼音 */
    @Excel(name = "出发站拼音")
    private String startPinyin;

    /** 出发时间 */
    @JsonFormat(pattern = "hh:mm:ss")
    @Excel(name = "出发时间", width = 30, dateFormat = "hh:mm:ss")
    private Time startTime;

    /** 出发站序|本站是整个车次的第几站 */
    @Excel(name = "出发站序|本站是整个车次的第几站")
    private Long startIndex;

    /** 到达站 */
    @Excel(name = "到达站")
    private String end;

    /** 到达站拼音 */
    @Excel(name = "到达站拼音")
    private String endPinyin;

    /** 到站时间 */
    @JsonFormat(pattern = "hh:mm:ss")
    @Excel(name = "到站时间", width = 30, dateFormat = " hh:mm:ss")
    private Time endTime;

    /** 到站站序|本站是整个车次的第几站 */
    @Excel(name = "到站站序|本站是整个车次的第几站")
    private Long endIndex;

    /** 一等座余票 */
    @Excel(name = "一等座余票")
    private Long ydz;

    /** 一等座票价 */
    @Excel(name = "一等座票价")
    private BigDecimal ydzPrice;

    /** 二等座余票 */
    @Excel(name = "二等座余票")
    private Long edz;

    /** 二等座票价 */
    @Excel(name = "二等座票价")
    private BigDecimal edzPrice;

    /** 软卧余票 */
    @Excel(name = "软卧余票")
    private Long rw;

    /** 软卧票价 */
    @Excel(name = "软卧票价")
    private BigDecimal rwPrice;

    /** 硬卧余票 */
    @Excel(name = "硬卧余票")
    private Long yw;

    /** 硬卧票价 */
    @Excel(name = "硬卧票价")
    private BigDecimal ywPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setTrainCode(String trainCode) 
    {
        this.trainCode = trainCode;
    }

    public String getTrainCode() 
    {
        return trainCode;
    }
    public void setStart(String start) 
    {
        this.start = start;
    }

    public String getStart() 
    {
        return start;
    }
    public void setStartPinyin(String startPinyin) 
    {
        this.startPinyin = startPinyin;
    }

    public String getStartPinyin() 
    {
        return startPinyin;
    }
    public void setStartTime(Time startTime)
    {
        this.startTime = startTime;
    }

    public Time getStartTime()
    {
        return startTime;
    }
    public void setStartIndex(Long startIndex) 
    {
        this.startIndex = startIndex;
    }

    public Long getStartIndex() 
    {
        return startIndex;
    }
    public void setEnd(String end) 
    {
        this.end = end;
    }

    public String getEnd() 
    {
        return end;
    }
    public void setEndPinyin(String endPinyin) 
    {
        this.endPinyin = endPinyin;
    }

    public String getEndPinyin() 
    {
        return endPinyin;
    }
    public void setEndTime(Time endTime)
    {
        this.endTime = endTime;
    }

    public Time getEndTime()
    {
        return endTime;
    }
    public void setEndIndex(Long endIndex) 
    {
        this.endIndex = endIndex;
    }

    public Long getEndIndex() 
    {
        return endIndex;
    }
    public void setYdz(Long ydz) 
    {
        this.ydz = ydz;
    }

    public Long getYdz() 
    {
        return ydz;
    }
    public void setYdzPrice(BigDecimal ydzPrice) 
    {
        this.ydzPrice = ydzPrice;
    }

    public BigDecimal getYdzPrice() 
    {
        return ydzPrice;
    }
    public void setEdz(Long edz) 
    {
        this.edz = edz;
    }

    public Long getEdz() 
    {
        return edz;
    }
    public void setEdzPrice(BigDecimal edzPrice) 
    {
        this.edzPrice = edzPrice;
    }

    public BigDecimal getEdzPrice() 
    {
        return edzPrice;
    }
    public void setRw(Long rw) 
    {
        this.rw = rw;
    }

    public Long getRw() 
    {
        return rw;
    }
    public void setRwPrice(BigDecimal rwPrice) 
    {
        this.rwPrice = rwPrice;
    }

    public BigDecimal getRwPrice() 
    {
        return rwPrice;
    }
    public void setYw(Long yw) 
    {
        this.yw = yw;
    }

    public Long getYw() 
    {
        return yw;
    }
    public void setYwPrice(BigDecimal ywPrice) 
    {
        this.ywPrice = ywPrice;
    }

    public BigDecimal getYwPrice() 
    {
        return ywPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("date", getDate())
            .append("trainCode", getTrainCode())
            .append("start", getStart())
            .append("startPinyin", getStartPinyin())
            .append("startTime", getStartTime())
            .append("startIndex", getStartIndex())
            .append("end", getEnd())
            .append("endPinyin", getEndPinyin())
            .append("endTime", getEndTime())
            .append("endIndex", getEndIndex())
            .append("ydz", getYdz())
            .append("ydzPrice", getYdzPrice())
            .append("edz", getEdz())
            .append("edzPrice", getEdzPrice())
            .append("rw", getRw())
            .append("rwPrice", getRwPrice())
            .append("yw", getYw())
            .append("ywPrice", getYwPrice())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
